import kotlin.properties.Delegates

var count by Delegates.vetoable(0) { _, oldVal, newVal -> newVal > oldVal }
println("the value of count is $count")
count++
println("the value of count is $count")
count--
println("the value of count is $count")